Since we stored what the user entered in a variable, we can use that variable to display the user's answer in our story.

  • Go to . Drag Set Text into the bottom of your code. Change the name in front to text.
  • Change the string inside the parentheses to the variable transition1. Be sure to DELETE the quotation marks!

The .set_text() command will replace what we have in the current text box.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)